package sk.vrto.service.dao;

import sk.vrto.domain.Email;
import sk.vrto.domain.User;

import java.util.Collection;

/**
 * Repository that operates with Email entity
 */
public interface EmailRepository extends Repository<Email, Integer> {

    /**
     * Loads all emails for the user currently logged in
     * @param user User to filter emails for
     * @return Loaded emails
     */
    Collection<Email> loadEmailsForUser(User user);

}
